package com.imooc.service;


import com.imooc.BO.AddressBO;
import com.imooc.pojo.UserAddress;

import java.util.List;

/**
 * @author gcq
 * @Create 2022-01-04
 */
public interface AddressService {

    public List<UserAddress> queryAll(String userId);

    public void addNewUserAddress(AddressBO addressBO);

    public void updateUserAddress(AddressBO addressBO);

    public void deleteUserAddress(String userId, String addressId);

    public void updateUserAddressToBeDefault(String userId, String addressId);

    public UserAddress queryUserAddress(String userId, String addressId);
}
